package com.teach.demo02;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-06 14:45
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Student {

  public static String school;//静态属性

  private String name;
  private Integer age;

  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public Integer getAge() {
    return age;
  }
  public void setAge(Integer age) {
    this.age = age;
  }

  /**
   * 静态方法
   * @return
   */
  public static String getSchool() {
    return school;
  }
  /**
   * 静态方法
   * @param school
   */
  public static void setSchool(String school) {
    Student.school = school;
  }
  @Override
  public String toString() {
    return "Sutdent [name=" + name + ", age=" + age + "]"+school;
  }

  public void show(){
    System.out.println(this.name);
    System.out.println(this.age);
  }

  public static void show1(){
//    System.out.println(this.name);
//    System.out.println(this.age);
  }

  public static void main(String[] args) {
//    name = "ss";
    school = "xxx";
  }



}